package com.ct.ioc.controller;

import com.ct.ioc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserController3 {

    private UserService userService;

    @Autowired
    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    public void sayHi () {
        userService.doService();
        System.out.println("UserController3.sayHi...");
    }
}
